package com.situ.day6;

public class Vehicle {
	private int speed;
	private int size;
	public Vehicle() {
		super();
	}
	
	
	public Vehicle(int speed, int size) {
		super();
		this.speed = speed;
		this.size = size;
	}
	public void move(){
		System.out.println("speed");
	}
	public void  speedUP(int up){
		 speed = speed + up;
	}
	public void speedDown(int down){
		speed = speed - down;
	}

	public int getSpeed() {
		return speed;
	}
	public void setSpeed(int speed) {
		this.speed = speed;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	
	@Override
	public String toString() {
		return "Vehicle [speed=" + speed + ", size=" + size + "]";
	}


	
	
}
